stubdom: fix stubdom-dm error path
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 14 Jul 2009 13:46:04 +0000 (14:46 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 14 Jul 2009 13:46:04 +0000 (14:46 +0100)
Exit the shell and not a subshell.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
stubdom/stubdom-dm

index c138e009455b4650e1b8dd001ccd27d63cfb3cfa..8faca31843bdb8154fde4c2573ae05aed469febc 100644 (file)
@@ -74,8 +74,8 @@ do
     shift
 done
 
-[ -z "$domid"   ] && ( echo "couldn't find domain ID" ; exit 1 )
-[ -z "$domname" ] && ( echo "couldn't find domain name" ; exit 1 )
+[ -z "$domid"   ] && { echo "couldn't find domain ID" ; exit 1; }
+[ -z "$domname" ] && { echo "couldn't find domain name" ; exit 1; }
 
 # Termination handler